package com.jrx.anytxn.investor.service;

import com.jrx.anytxn.common.exception.TxnException;
import com.jrx.anytxn.investor.bean.InvestorDealIntrBean;
import com.jrx.anytxn.investor.bean.InvestorIntrAccuBean;

/**
 * 每日计息处理Service接口
 *
 * @author liuyang
 * @date 2020-05-26
 */
public interface IInvestorInterestCalculateService {

    /**
     * 每日计息处理
     * 以单个计息账户为基础，计算利息，并记录到计息账户上
     *
     * @param dealIntrBean \
     * @return InvestorIntrAccuBean 计息更新信息
     * @throws TxnException
     * @author liuyang
     * @date 2020-05-26
     */
    InvestorIntrAccuBean calculateInterest(InvestorDealIntrBean dealIntrBean) throws TxnException;
}
